projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
413b377
)
(w32_BDF_to_x_font): Unmap memory when finished.
author
Jason Rumney
<jasonr@gnu.org>
Wed, 20 Jun 2007 21:26:16 +0000
(21:26 +0000)
committer
Jason Rumney
<jasonr@gnu.org>
Wed, 20 Jun 2007 21:26:16 +0000
(21:26 +0000)
(w32_free_bdf_font): Unmap memory not handle.
src/w32bdf.c
patch
|
blob
|
history
diff --git
a/src/w32bdf.c
b/src/w32bdf.c
index 64ec2f7a3b0812b965fa324b75a62eb16d72d8f7..40e705a18c97932978bf530ac8c349a020896456 100644
(file)
--- a/
src/w32bdf.c
+++ b/
src/w32bdf.c
@@
-302,7
+302,7
@@
w32_free_bdf_font(bdffont *fontp)
font_char *pch;
cache_bitmap *pcb;
- UnmapViewOfFile(fontp->
hfilemap
);
+ UnmapViewOfFile(fontp->
font
);
CloseHandle(fontp->hfilemap);
CloseHandle(fontp->hfile);
@@
-867,6
+867,7
@@
int w32_BDF_to_x_font (char *file, char* xstr, int len)
retval = 1;
}
}
+ UnmapViewOfFile (font);
CloseHandle (hfile);
CloseHandle (hfilemap);
return retval;